//
//  DUPlayView.h
//  APP
//
//  Created by duyujin1 on 2021/9/7.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface DUPlayView : UIView
+(DUPlayView *)sharePlayer;
-(void)setPlayer:(AVPlayer *)myPlayer;
-(void)playWithUrl:(NSURL *)url;
-(void)releasePlayer;
@end

NS_ASSUME_NONNULL_END
